<html>
<head>
    <style>
        *{margin:0; padding: 0; color: #333333; font-size: 14px;}
        ul li{list-style: none;}
        a{text-decoration: none;}
        .top,.box{width: 1000px; margin:0 auto;}
        .nav {background-color: #888888; height: 40px; line-height: 40px}
        .nav ul li a{color:#ffffff;display: block; float: left; width: 80px; text-align: center; font-size: 16px}
        .box{margin-top: 10px}
    </style>
</head>
<body>
<?php include_once './Views/common/top.php';?>
<div class="box">
   <ul>
       <?php foreach ($items as $v):?>
       <li><a href="/index.php?c=news&a=detail&id=<?php echo $v['id'];?>">
               <?php if(!empty($v['image'])):?><img src="<?php echo $v['image'];?>" style="width: 80px; height: 80px;" alt=""><?php endif;?>
               <?php echo $v['title'];?>
           </a>
           <span><?php echo $v['created_at']?></span>
       </li>
       <?php endforeach;?>
   </ul>
</div>
</body>
</html>